package com.woniuxy.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.servlet.ModelAndView;

import java.util.List;
import java.util.Map;

/**
 * @author 佘赛飞
 * @create 2021-11-18 4:48 下午
 */
@Controller
@RequestMapping("/ruser")
public class MapController {
    @RequestMapping("addUser_map")
    public ModelAndView addUser_map(@RequestParam Map user, @RequestParam List ids) {
        ModelAndView modelAndView = new ModelAndView();
        modelAndView.addObject("user","传入的Map集合是："+user);
        modelAndView.addObject("ids","传入的list集合是："+ids);
        modelAndView.setViewName("/mapview");
        return modelAndView;
    }
}
